<?php echo CHtml::form(); ?>
  <div id="langdrop" style="padding-left:5mm"  <?php if(Yii::app()->language =='ar'){?>align="left" style="padding-left:5mm" <?php } else { ?>  align="right" style="padding-right:5mm"<?php } ?> >
         <?php // echo CHtml::dropDownList('_lang', $currentLang, array( 'en' => 'en', 'ar' => 'ع'), array('submit' => '')); ?>
      	
      	<form id="lanBox" method="get">
      	
      	 <?php  foreach($_GET as $k=>$v) { 
      	 
      	 	if($k != "_lang" && !is_object ($k) && !is_array ($k) && !is_object ($v) && ! is_array ($v)){
      	 	?>
      	 	<input type="hidden" name="<?php echo $k ?>" value="<?php echo $v ?>"/>
      	 
      	 <?php 
      			 }
				 }
        		if($currentLang=='en'){
        		?>
        		<input type="hidden" name="_lang" value="ar"/>
        		<?php 	
        		echo TbHtml::button('ع',array('submit' => '','color' => TbHtml::BUTTON_COLOR_INFO));
        		}elseif($currentLang=='ar'){ ?>
        		<input type="hidden" name="_lang" value="en"/>
        		<?php 
        		echo TbHtml::button('en',array('submit' => '','color' => TbHtml::BUTTON_COLOR_INFO));
        		}
        		?>
        </form>		
    </div>
<?php echo CHtml::endForm(); ?>